package com.hsxc.cdz.base.dao;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.hsxc.cdz.base.bean.IcUser;

/**
 * 
 * @author 刘力文
 * ic卡用户的dao层
 *
 */
@Repository
public class IcUserDao {
	
	@Autowired  
	private SqlSessionTemplate sqlSessionTemplate;
	
	/**
	 * 根据用户id获取用户信息
	 * @param id
	 * @return
	 */
	public IcUser selectById (String id){
		return sqlSessionTemplate.selectOne("selectById", id);
	}
}
